package com.metacube.questionbank.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.metacube.questionbank.dto.QuestionDTO;

public class QuestionRowMapper implements RowMapper<QuestionDTO>{

	@Override
	public QuestionDTO mapRow(ResultSet res, int line) throws SQLException {
		
		QuestionExtractor questionExtractor = new QuestionExtractor();
		
		return questionExtractor.extractDataForQuestion(res);

	}

}
